
package com.hlkj.pay.app.merchant.ext.impl.fuyou.dto;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import java.util.List;

import com.hlkj.framework.common.util.json.JsonUtils;

import lombok.Data;

/**
 * @author HlpayTeam
 * @date 2024/10/16 15:45
 */
@Data
public class FuYouWechatConfigResponse extends FuYouResponse {

    /**
     * appidConfigList : code : 0000 desc : error : jsapiCode : FAIL jsapiMsg :
     * 公众号支付支付域名格式不符合规范要求，请检查修改后重试 jsapiPathList : mchntCd : 0003940F1702040
     * merchantName : merchantNo : 1512251 message : 操作成功 status : statusCode :
     * subAppidCode : FAIL subAppidMsg : 该 APPID 认证主体与特约商户或服务商主体不一致，请检查后再试
     * subscribeAppidCode : FAIL subscribeAppidMsg : 查询商户与公众号绑定关系失败
     */

    private List<ConfigsBean> configs;

    @Data
    public static class ConfigsBean {

        private String appidConfigList;

        private String code;

        private String desc;

        private String error;

        private String jsapiCode;

        private String jsapiMsg;

        private String jsapiPathList;

        private String mchntCd;

        private String merchantName;

        private String merchantNo;

        private String message;

        private String status;

        private String statusCode;

        private String subAppidCode;

        private String subAppidMsg;

        private String subscribeAppidCode;

        private String subscribeAppidMsg;
    }
    @Data
    public static class AppIdConfig {

        private String sub_appid;

        private String subscribe_appid;

    }
    
    public static void main(String[] args) {
        String json="{\"configs\":[{\"appidConfigList\":\"[{\\\"sub_appid\\\":\\\"wxfa089da95020ba1a\\\",\\\"subscribe_appid\\\":\\\"\\\"},{\\\"sub_appid\\\":\\\"wx5aced7eb8af44824\\\",\\\"subscribe_appid\\\":\\\"\\\"},{\\\"sub_appid\\\":\\\"wx42c9727eaa151e8b\\\",\\\"subscribe_appid\\\":\\\"\\\"}]\",\"code\":\"0\",\"desc\":\"\",\"error\":\"\",\"jsapiCode\":\"\",\"jsapiMsg\":\"\",\"jsapiPathList\":\"\",\"mchntCd\":\"0005210F8121151\",\"merchantName\":\"\",\"merchantNo\":\"713422908\",\"message\":\"处理成功\",\"status\":\"\",\"statusCode\":\"\",\"subAppidCode\":\"\",\"subAppidMsg\":\"\",\"subscribeAppidCode\":\"\",\"subscribeAppidMsg\":\"\"}],\"retCode\":\"0000\",\"retMsg\":\"操作成功\",\"sign\":\"\",\"traceNo\":\"\"}";
        System.out.println(JsonUtils.parseObject(json, FuYouWechatConfigResponse.class));
    }
}
